package com.mifengkong.greendao.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by jiangyongxing on 2018/4/16.
 * 描述：
 */
@Entity
public class CacheData {

    @Id(autoincrement = true)
    long id;

    private String cacheKey;

    private String data;

    public CacheData(String cacheKey, String data) {
        this.cacheKey = cacheKey;
        this.data = data;
    }

    @Generated(hash = 385903623)
    public CacheData(long id, String cacheKey, String data) {
        this.id = id;
        this.cacheKey = cacheKey;
        this.data = data;
    }

    @Generated(hash = 1582791643)
    public CacheData() {
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCacheKey() {
        return this.cacheKey;
    }

    public void setCacheKey(String cacheKey) {
        this.cacheKey = cacheKey;
    }

    public String getData() {
        return this.data;
    }

    public void setData(String data) {
        this.data = data;
    }
}